package com.easydl.project.config;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * 自定义配置文件
 * 	@PropertySource只能加载*.properties文件 (没有测试不清楚)
 * @author fxb208
 *
 */
@PropertySource(value = {"classpath:easydl.properties"},ignoreResourceNotFound=false,encoding="UTF-8")
@ConfigurationProperties("easydl.dataset.url")
@Component
public class EasydldatasetProperties {
	private String create;
	private String list;
	private String delete;
	private String addentity;
	public String getCreate() {
		return create;
	}
	public void setCreate(String create) {
		this.create = create;
	}
	public String getList() {
		return list;
	}
	public void setList(String list) {
		this.list = list;
	}
	public String getDelete() {
		return delete;
	}
	public void setDelete(String delete) {
		this.delete = delete;
	}
	public String getAddentity() {
		return addentity;
	}
	public void setAddentity(String addentity) {
		this.addentity = addentity;
	}
	@Override
	public String toString() {
		return "EasydldatasetProperties [create=" + create + ", list=" + list + ", delete=" + delete + ", addentity="
				+ addentity + "]";
	}
}
